
#include <sys/types.h>
#include <sys/socket.h>
#include "transform.h"

int recv_from_client(int socket,char *username)
{
	int len;
	if(0 < recv(socket, &len,sizeof(int),MSG_WAITALL))
	{
		if(0 < recv(socket, username, len, MSG_WAITALL))
			return 0;
	}
	return 1;
}

